<head>
  <%= engine_stylesheet 'login_engine' %>
</head>
<html>
<% if current_user %>
    <%= start_form_tag :action => 'search' %>
    <!--[form:note]-->
    <label for="q">Search for: </label><input type=text id="query" name="q" value="<%= @query %>"> <br/>
    <%= submit_tag 'Search' %>
    <!--[eoform:note]-->
    <%= end_form_tag %>
<% end %>
<% for name in [:notice, :warning, :message] %>
  <% if flash[name] %>
    <%= "<div id=\"#{name}\">#{flash[name]}</div>" %>
  <% end %>
<% end %>
<%= @content_for_layout %>
</html>